export const columnsData = (h, vm) => [

  {
    title: '序号',
    dataIndex: '_index',
    width: 120
  },
  {
    title: '起始时间',
    dataIndex: 'customer',
    width: 120,
    scopedSlots: { customRender: 'tags' }
  },
  // {
  //   title: 'id',
  //   dataIndex: 'pdepartment',
  //   width: 120,
  //   align: 'center'
  // },
  {
    title: '终端替换进度',
    dataIndex: 'rstatus',
    width: 120
  },
  {
    title: '外设替换进度',
    dataIndex: 'pstatusName1',
    width: 120
  },
  {
    title: '完成状态',
    dataIndex: 'pstatusName2',
    width: 120

  },
  {
    title: '是否采购',
    width: 120,
    align: 'center',
    customRender: (record) => {
      return <div>
        {record.SF ? <a-icon style={{ fontSize: '24px', color: '#eb2f96' }} type="check-circle" /> : <a-icon style={{ fontSize: '24px', color: '#52c41a' }} type="minus-circle" />}
      </div>
    }
  }, {
    title: '操作',
    align: 'center',
    width: 220,
    customRender: (record) => {
      return (
        <div class="row-operator">
          <a href="javascript:;" onClick={() => vm.boxShow2(record)}>弹窗一</a>
          <a-divider type="vertical" />
          <a href="javascript:;" onClick={() => vm.boxShow3(record)}>弹窗二</a>
          <a-divider type="vertical" />
          <a href="javascript:;" onClick={() => vm.boxShow4(record)}>弹窗三</a>
          <a-divider type="vertical" />
          <a href="javascript:;" onClick={() => vm.boxShow5(record)}>自定义按钮弹窗</a>
        </div>
      )
    }
  }]
